package com.chenyongjing.design.pattern.command.player.actions;

import com.chenyongjing.design.pattern.command.player.GPlayer;
import com.chenyongjing.design.pattern.command.player.IAction;

/**
 * @Author chen
 * @Date 2022/11/20 17:16
 */
public class SpeedAction implements IAction {
    private GPlayer gPlayer;

    public SpeedAction(GPlayer gPlayer) {
        this.gPlayer = gPlayer;
    }

    @Override
    public void execute() {
        gPlayer.speed();
    }
}
